﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CommonUtilities.UITest
{
    public partial class frmSortDirectioner : Form
    {
        public frmSortDirectioner()
        {
            InitializeComponent();
            cUtil_SortDirectioner1.Enabled = chkEnableSort.Enabled;
        }

        private void chkEnableSort_CheckedChanged(object sender, EventArgs e)
        {
            cUtil_SortDirectioner2.Enabled = cUtil_SortDirectioner1.Enabled = chkEnableSort.Checked;
        }

        private void cUtil_SortDirectioner1_OnSortChanged(object sender, EventArgs e)
        {
            label1.Text = "IsAscending = " + cUtil_SortDirectioner1.IsAscending.ToString();
        }
    }
}
